]> dgit.raspbian.org Git - gnome-shell.git/commit
workspace: Use the new WorkspaceLayout for allocating window clones
authorJonas Dreßler <verdre@v0yd.nl>
Wed, 3 Jun 2020 16:17:54 +0000 (18:17 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 6 Jul 2020 21:16:15 +0000 (23:16 +0200)
commit751189253a25b81faa97551e4d3d5c11e1022f61
tree6207f5d3b90eacdf85cdad6ee76b7c853c325f9c
parent21187a4cecd28bf3537b0d9c9c96360541345688
workspace: Use the new WorkspaceLayout for allocating window clones

Switch to the new WorkspaceLayout layout manager to allocate the window
clones of the overview properly using Clutters layouting mechanisms.

Since we now no longer make use of the fullGeometry, we can remove the
setFullGeometry() function from the Workspace class. Also we can stop
setting the actualGeometry on the Workspaces and WorkspaceViews and
instead just set the fixed position and size of the views to their
full or actual geometry. This also has the benefit that we no longer
have to set a custom clip, but can simply enable clip_to_allocation.

The geometry needs to be set inside a BEFORE_REDRAW later because
_updateWorkspacesActualGeometry() is called from a notify::allocation
handler.

This isn't doing any animations when showing/hiding the overview yet,
we'll add that in the next commit.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1305
data/theme/gnome-shell-sass/widgets/_window-picker.scss
js/ui/windowPreview.js
js/ui/workspace.js
js/ui/workspacesView.js